package com.bandit.exception;

import com.bandit.emums.RpcExceptionMessageEnum;

/**
 * @author Bandit
 * @create 2022/2/23 22:41
 */
public class RpcException extends RuntimeException{

    public RpcException(RpcExceptionMessageEnum rpcExceptionMessageEnum, String detail){
        super(rpcExceptionMessageEnum.getMessage()+":"+detail);
    }

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public RpcException(RpcExceptionMessageEnum rpcExceptionMessageEnum) {
        super(rpcExceptionMessageEnum.getMessage());
    }

}
